import request from '@/utils/request'

// 查询产品工位成本列表
export function listNcProductStaCost(query) {
  return request({
    url: '/business/ncProductStaCost/list',
    method: 'get',
    params: query
  })
}

// 查询产品工位成本详细
export function getNcProductStaCost(id) {
  return request({
    url: '/business/ncProductStaCost/' + id,
    method: 'get'
  })
}

// 新增产品工位成本
export function addNcProductStaCost(data) {
  return request({
    url: '/business/ncProductStaCost',
    method: 'post',
    data: data
  })
}

// 修改产品工位成本
export function updateNcProductStaCost(data) {
  return request({
    url: '/business/ncProductStaCost',
    method: 'put',
    data: data
  })
}

// 删除产品工位成本
export function delNcProductStaCost(id) {
  return request({
    url: '/business/ncProductStaCost/' + id,
    method: 'delete'
  })
}
